<!doctype html>
<title>&lt;use> referencing an SVG element outside an SVG fragment</title>
<link rel="help" href="https://svgwg.org/svg2-draft/struct.html#UseElement">
<link rel="match" href="reference/green-100x100.html">
<svg>
  <defs>
    <rect id="rect" width="100" height="100" fill="green"/>
  </defs>
  <use href="#rect"/>
</svg>
<script>
  document.body.appendChild(document.getElementById('rect'));
</script>
